<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>易办税图片上传</title>
  </head>
  <body>
    <input type="file" accept="" id="img" />
    <p class="name"></p>
    <img src="" />
    <script src="./dist/index.min.js"></script>
    <script>
      var dom = document.querySelector("#img");
      dom.addEventListener("change", function(e) {
        // console.log(el)
        var el = e.target;
        var fileList = el;
        UploadImg({
          maxSize: 5 * 1024,
          elem: el,
          uploadUrl: "/qwq/qwqw.do"
        });
      });
      // var url = window.location.href;
      // var userInfo = url.split("&userinfo=")[1];
      // var dUserInfo = window.decodeURI(userInfo);
      // var { nickname } = JSON.parse(dUserInfo);
      // setTimeout(() => {
      //   document.querySelector(".name").innerText = nickname;
      //   console.log(dUserInfo);
      // }, 500);
    </script>
    <!-- <script src="//cdn.bootcss.com/eruda/1.5.2/eruda.min.js"></script>
    <script>
      eruda.init();
    </script> -->
  </body>
</html>
